package by.imotaeva.printing_services.services;

import javax.transaction.Transactional;

import by.imotaeva.printing_services.datamodel.Customer;
import by.imotaeva.printing_services.datamodel.OrderStatus;
import by.imotaeva.printing_services.datamodel.PrintingProductOrder;

public interface PrintingProductOrderService {

	PrintingProductOrder get(Long id);

	@Transactional
	void saveOrUpdate(PrintingProductOrder entity);

	@Transactional
	void delete(PrintingProductOrder entity);

	@Transactional
	OrderStatus getStatusByProductionOrderNum(Long number);

	@Transactional
	Customer getCustomerByProductionOrderNum(Long number);

	@Transactional
	void updateProductStatus(Long orderNumber, OrderStatus newStatus);

}
